home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 3
/
003.d81
/
dos part 6
< prev
next >
Wrap
Text File
|
2022-08-26
|
2KB
|
123 lines
---------Dos & Don'ts-Part 6----------
The format of the SCRATCH command is:
@S:filename
So, in this case, we just type:
@S:MENU (Delete old MENU)
_MENU (Save new MENU )
SAVING MENU00,OK,00,00 (Status)
READY.
If you use the Wedge version of SAVE
('_filename'), you automatically get a
Disk Status display when the save is
done (or bombed)! At any rate, since
the old MENU was SCRATCHed, there was
no MENU currently existing. The rea-
son this method is not particularly
safe is that if a power failure or
some other catastrophe should occur
between the time you SCRATCH the old
file and the time you SAVE the new
file, you are left with no file.
A better way is to change the name of
the old version without SCRATCHing it.
(You can SCRATCH it later if you want,
but backups never hurt anyone!) To
change the name of a file, use the
RENAME maintenance command. The for-
mat is:
@R:newname=oldname
So, in our case, we can type:
@R:OLDMENU=MENU (Rename old MENU)
_MENU (Save new MENU )
SAVING MENU00, OK,00,00
READY.
and we are done!
If a file is not 'CLOSEd' after being
'OPENed', the directory will show an
asterisk ('*') just before the file
type, and a file length of zero. DO
NOT SCRATCH SUCH A FILE!! There is a
way to get rid of all such files on a
disk. If, for example, we find:
@$
0 'MY FIRST DISK ' M1 2A
1 'DOS WEDGE' PRG
5 'DOS 5.1' PRG
14 'MENU' PRG
0 'MENU FILE' *SEQ
601 BLOCKS FREE.
that means that 'MENU FILE' was never
'CLOSEd'. More than likely, it is too
late to close it now, so just type:
@V
This is the VALIDATE maintenance com-
mand. It checks all the blocks of all
the files on the disk, and in the pro-
cess, removes any unclosed files. It
can take some time depending on how
much of the disk is used.
Next issue, we will discuss how to
SCRATCH more than 1 file with 1 com-
mand, how to remove ALL the files on
a disk and change the disk name, and
how to get a SPECIALIZED Disk
Directory.
------------End of Article------------